package com.woniu.park.service.impl;

import com.woniu.park.dao.ParkTypeMapper;
import com.woniu.park.pojo.ParkType;
import com.woniu.park.pojo.ParkTypeExample;
import com.woniu.park.service.ParkTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张洛诚
 * @date 2019/8/30 11:18:14
 * @description
 */
@Service
public class ParkTypeServiceImpl implements ParkTypeService {

    @Autowired
    ParkTypeMapper parkTypeMapper;

    @Override
    public List<ParkType> getAllParkType() {
        ParkTypeExample example=new ParkTypeExample();
        example.createCriteria();
        List<ParkType> parkTypes = parkTypeMapper.selectByExample(example);
        return parkTypes;
    }
}
